import autoImport from 'unplugin-auto-import/vite'

import { VueRouterAutoImports, getPascalCaseRouteName } from 'unplugin-vue-router'

export default function createAutoImport() {
    return autoImport({
        imports: [
            'vue',
            'vue-router',
            'pinia', '@vueuse/core', '@vueuse/math'
        ],
        eslintrc: {
            enabled: true,
            filepath: './.eslintrc-auto-import.json',
        },
        dirs: [
            './src/@core/utils',
            './src/@core/composable/',
            './src/composables/',
            './src/utils/',
            './src/plugins/*/composables/*',
          ],
          vueTemplate: true,
    
          // ℹ️ Disabled to avoid confusion & accidental usage
          ignore: ['useCookies', 'useStorage'],
    })
}
